package com.example.abc.exception;

import com.example.abc.enums.PersonEnum;

/**
 * @author : Eumenides
 * @date : 2018/08/01
 * @description :
 */
public class PersonException extends RuntimeException{

    private Integer code;
    private String msg;

    public PersonException(PersonEnum personEnum) {
        super(personEnum.getMsg());
        this.code = personEnum.getCode();
    }
}
